include <header.h>

int main(int argc,char *argv[argc]){


DIR *dir= opendir("./dir");
struct dirent *dent = readdir(dir);
while(dent != NULL){
 if(dent->d_type == DT_REG){
     printf("reg: %s \n", dent->d_name);
}else if(dent->d_type == DT_DIR){
     printf("dir: %s \n", dent->d_name);
}
 dent = readdir(dir);
}
closedir(dir);
return 0;
}
